<?php
namespace app\index\controller;

use app\common\key\AdKey;

/**
 * @description : [首页控制器]
 * Class Index
 * @package app\index\controller
 */
class Index extends Base
{
    public function index()
    {
        $ad = $this->getAdByType(AdKey::TYPE_HOME);
        $bottom = model('IndexBottom')->select();
        $fashion = model('Fashion')->order('sort')->select();
        return $this->fetch('', [
            'ad' => $ad,
            'bottom' => $bottom,
            'fashion' => $fashion,
        ]);
    }
}
